local MobaRank = MClass("MobaRank")

function MobaRank:ctor()
    --self.root 默认为根节点
    --设置事件
    self.closeBtn = self:findChild("Panel/Button_close")

    self:init()
end

function MobaRank:init()
	--设置
    local function touchEvent_close(sender, eventType)
        if eventType == ccui.TouchEventType.ended then
            self:setVisible(false)
        end
    end
    self.closeBtn:addTouchEventListener(touchEvent_close)

    local function onNodeEvent(event)
        if "enter" == event then
        elseif "exit" == event then
        end
    end
    self:registerScriptHandler(onNodeEvent) 

end

return MobaRank